﻿<local:BasePage
    x:Class="TheVerge.Phone.Pages.GalleryPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="clr-namespace:TheVerge.Phone.Pages"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:toolkit="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls.Toolkit"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    Loaded="This_Loaded" OrientationChanged="This_OrientationChanged"
    mc:Ignorable="d"
    shell:SystemTray.IsVisible="True">
    <toolkit:GestureService.GestureListener>
        <toolkit:GestureListener 
            DoubleTap="This_DoubleTab"
            DragCompleted="This_DragCompleted" DragDelta="This_DragDelta" 
            PinchCompleted="This_PinchCompleted" PinchDelta="This_PinchDelta" PinchStarted="This_PinchStarted" 
            />
    </toolkit:GestureService.GestureListener>
    <Grid>
        <Grid.Resources>
            <Style x:Key="imgStyle" TargetType="Image">
                <Setter Property="VerticalAlignment" Value="Center" />
            </Style>
        </Grid.Resources>
        
        <Image x:Name="left" Style="{StaticResource imgStyle}">
            <Image.RenderTransform>
                <CompositeTransform x:Name="leftTransform" />
            </Image.RenderTransform>
        </Image>
        <Image x:Name="right" Style="{StaticResource imgStyle}">
            <Image.RenderTransform>
                <CompositeTransform x:Name="rightTransform" />
            </Image.RenderTransform>
        </Image>
        <Image x:Name="center" Style="{StaticResource imgStyle}">
            <Image.RenderTransform>
                <CompositeTransform x:Name="centerTransform" />
            </Image.RenderTransform>
        </Image>
    </Grid>
</local:BasePage>